package chapter1;

import java.util.Scanner;

public class Test
{
    public static void main(String[] args)
    {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入姓名：");
        String name = scanner.next();
        System.out.println("请输入身高cm：");
        float height = scanner.nextFloat();
        System.out.println("请输入年龄：");
        int year = scanner.nextInt();
        System.out.println("个人信息如下：");
        System.out.println("姓名："+name+" - 身高："+height+"cm - 年龄："+year);
    }
}
